#pragma once

#include <iostream>
#include <string>   

#include "TcpServer.hpp"

class TcpServer;
class Connection 
{
public:
    Connection()
    {

    }

    ~Connection()
    {

    }

private:
    int _sockfd; // socket 文件描述符

    std::string _inbuffer; // 输入缓冲区
    std::string _outbuffer; // 输出缓冲区

    TcpServer *_owner; // 回指指针
};
